<template>
  <div>
    <router-view class="view"></router-view>
    <Menu v-if="isMenuAlive"></Menu>
  </div>
</template>

<script>
import Menu from "./pages/common/menu.vue";
import router from "./router/index";
export default {
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      isMenuAlive: true,
    };
  },
  methods: {
    reload() {
      this.isMenuAlive = false;
      this.$nextTick(function () {
        this.isMenuAlive = true;
      });
    },
  },
  components: {
    Menu,
  },
};
</script>
